package cn.dogeye.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author watson
 * @since 2021-12-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 系统用户Id
     */
    @TableId(value = "sys_user_id", type = IdType.AUTO)
    private Integer sysUserId;

    /**
     * 系统用户名
     */
    private String sysUserName;

    /**
     * 系统用户密码
     */
    private String sysUserPassword;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建用户Id
     */
    private Integer createUserId;

    /**
     * 上次登录时间
     */
    private Date lastLoginTime;

    @TableField(exist = false)
    private List<SysRole> sysUserRoles;

    @TableField(exist = false)
    private List<SysAuth> sysUserAuths;


}
